package com.aabte.design2.behavioral.visitor;

import lombok.Data;

/**
 * @author Daniel
 * @version 1.0
 * @date 2020/5/4
 */
@Data
public class Circle implements Shape {

    private int x;
    private int y;
    private int r;

    public Circle(int x, int y, int r) {
        this.x = x;
        this.y = y;
        this.r = r;
    }

    @Override
    public void accept(Visitor visitor) {
        visitor.visitCircle(this);
    }
}
